#define ERROR_NONE 									0	//not error
#define ERROR_MAIL_NOTALLOW 						1	//throw when checking email format fail.
#define ERROR_PASS_EMPTY							2	//throw when password input is empty.
#define ERROR_MAIL_REGISTED							3	//throw when the email address had been use for registration
#define ERROR_MAIL_NOTSEND							4	//throw when the email of confirm had been sent fail
#define ERROR_MAIL_HAVE_NO_CONFIRM_INFO 			5	//throw when the email address have no confirm infomation.
#define ERROR_ACCOUNT_CONFIRM_CODE_WRONG			6	//throw when confirm code wrong.
#define ERROR_AREA_ADD_SYSTEM_AREA_EXISTS			7	//throw when try to add an exits area name.
#define ERROR_AREA_ADD_USER_AREA_EXISTS				8	//for user area // not use
#define ERROR_GROUP_ADD_SYSTEM_GROUP_EXISTS			9	//throw when try to add an exits group name.
#define ERROR_GROUP_ADD_USER_GROUP_EXISTS			10	//for user goup //not use
#define ERROR_GROUP_ADD_USER_ERROR					11	//for user group not use
#define ERROR_SYSTEM								12	//throw when an error of system happended. that is a bug of logic.
#define ERROR_GROUP_NOT_EXISTS						13	//throw when try to access to a not exist group
#define ERROR_LOGIN_FAIL							14	//throw when do a fail login
#define ERROR_BYTEBUFFER_OUT_OF_CAPABILITY			15	//throw when have some wrong in data tranfer.
#define ERROR_ACTION_NOT_ALLOW						16	//throw when try doing an action with wrong permission
#define ERROR_NOT_LOGIN								17	//throw when try doing an action that require login. But user not login yet
#define ERROR_CERTIFICATE_HANDLE_EXISTS				18	
#define ERROR_CERTIFICATE_HANDLE_NOT_EXISTS			19	//throw when client use an invalid certificate
#define ERROR_ACCOUNT_NOT_FRIEND					20	//throw when client try to do some thing with a person who not him's friends.
#define ERROR_FB_ACCOUNT_MERGE_FAIL					21	//throw when merge fb account fail
#define ERROR_ACCOUNT_CONFIRM_FAIL					22	//throw when confirm an account fail, unknows reason exactly
#define ERROR_ACCOUNT_REGISTER_FAIL					23	//throw when register an account fail
#define ERROR_SYSTEM_INVALID_ACCOUNT_ID				24	//throw when send an invalid account id
#define ERROR_GAMECENTER_TOURNAMENT_NULL			25
#define ERROR_GAMECENTER_TOURNAMENT_NONEED_UPDATE	26

#define ERRORSTR_ACTION_NOT_ALLOW					"Action not allow!"